 using System;
using System.Collections;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace ESAM_Assignment_3
{
    public partial class Administration : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            //Eric

            Response.CacheControl = "no-cache";

            if (!(bool)Session[Common.ESAM_ADMIN] || !(bool)Session[Common.ESAM_LOGIN])
            {
                Response.Redirect("Default.aspx");
            }
        }

        protected void btnError_Click(object sender, EventArgs e)
        {  
        
          try
            {
                int zero = 0;
                Response.Write(10 / zero);
            }
            catch (Exception ex)
            {
                Response.Redirect("Error.aspx");
            }
        }
    }
}